function habilitarDivTitulares(){
	if(document.getElementById('anchorImpresionti2Apellidos').innerHTML){
	  div = document.getElementById("divtitudos");
		div.style.display = (div.style.display = 'block')
	}		
	if(document.getElementById('anchorImpresionti3Apellidos').innerHTML){
	  div2 = document.getElementById("divtitutres");
		div2.style.display = (div2.style.display = 'block')
	}
} 

function agregarSeparadorDomicilio(){
	var id;
	var cId;
	var aId;
	var j;
	for(i=1;i<=3;i++){
		if(i == 1){
			id = "t";
			cId = "u";
			aId = "apo"
		}
		else{
			id = i;
			cId = i;
			aId = "graCalle";
		}
	j = i;
		/*Seteo los titulares*/
		//if(document.getElementById('anchorImpresionti' + id + 'Calle').innerHTML)
		//	document.getElementById('anchorImpresionti' + id + 'Calle').innerHTML = document.getElementById('anchorImpresionti' + id + 'Calle').innerHTML;
		if(document.getElementById('anchorImpresionti' + id + 'CalleNumero').innerHTML)
			document.getElementById('anchorImpresionti' + id + 'CalleNumero').innerHTML = " " + document.getElementById('anchorImpresionti' + id + 'CalleNumero').innerHTML;
		if(document.getElementById('anchorImpresionti' + id + 'Piso').innerHTML)
			document.getElementById('anchorImpresionti' + id + 'Piso').innerHTML = " PISO: " + document.getElementById('anchorImpresionti' + id + 'Piso').innerHTML;
		if(document.getElementById('anchorImpresionti' + id + 'Depto').innerHTML)
			document.getElementById('anchorImpresionti' + id + 'Depto').innerHTML = " DEPTO: " + document.getElementById('anchorImpresionti' + id + 'Depto').innerHTML;
		if(document.getElementById('anchorImpresionti' + id + 'CP').innerHTML)
			document.getElementById('anchorImpresionti' + id + 'CP').innerHTML = " (" + document.getElementById('anchorImpresionti' + id + 'CP').innerHTML + ")";
			
		/*seteo los conyuges*/
		//if(document.getElementById('anchorImpresioncony' + cId + 'Calle').innerHTML)
		//	document.getElementById('anchorImpresioncony' + cId + 'Calle').innerHTML = " " + document.getElementById('anchorImpresioncony' + cId + 'Calle').innerHTML;
		if(document.getElementById('anchorImpresioncony' + cId + 'CalleNumero').innerHTML)
			document.getElementById('anchorImpresioncony' + cId + 'CalleNumero').innerHTML = " " + document.getElementById('anchorImpresioncony' + cId + 'CalleNumero').innerHTML;
		if(document.getElementById('anchorImpresioncony' + cId + 'Piso').innerHTML)
			document.getElementById('anchorImpresioncony' + cId + 'Piso').innerHTML = " PISO: " + document.getElementById('anchorImpresioncony' + cId + 'Piso').innerHTML;
		if(document.getElementById('anchorImpresioncony' + cId + 'Depto').innerHTML)
			document.getElementById('anchorImpresioncony' + cId + 'Depto').innerHTML = " DEPTO: " + document.getElementById('anchorImpresioncony' + cId + 'Depto').innerHTML;
		if(document.getElementById('anchorImpresioncony' + cId + 'CP').innerHTML)
			document.getElementById('anchorImpresioncony' + cId + 'CP').innerHTML = " (" + document.getElementById('anchorImpresioncony' + cId + 'CP').innerHTML + ")";

		if(j<=2){	
			//alert(aId);
			/*seteo al apoderado y a la empresa */
			if(document.getElementById('anchorImpresion' + aId + 'Piso').innerHTML)
				document.getElementById('anchorImpresion' + aId + 'Piso').innerHTML = " PISO: " + document.getElementById('anchorImpresion' + aId + 'Piso').innerHTML;
			if(document.getElementById('anchorImpresion' + aId + 'Depto').innerHTML)
				document.getElementById('anchorImpresion' + aId + 'Depto').innerHTML = " DEPTO: " + document.getElementById('anchorImpresion' + aId + 'Depto').innerHTML;
			if(document.getElementById('anchorImpresion' + aId + 'CP').innerHTML)
				document.getElementById('anchorImpresion' + aId + 'CP').innerHTML = " (" + document.getElementById('anchorImpresion' + aId + 'CP').innerHTML + ")";
			
	    }
		  if(document.getElementById('anchorImpresionapoCalleNumero').innerHTML)
				document.getElementById('anchorImpresionapoCalleNumero').innerHTML = " " + document.getElementById('anchorImpresionapoCalleNumero').innerHTML;
			if(document.getElementById('anchorImpresiongraCalleNumero').innerHTML)
				document.getElementById('anchorImpresiongraCalleNumero').innerHTML = " " + document.getElementById('anchorImpresiongraCalleNumero').innerHTML;
		
	}
	
	var constiEmpresa = "conSoc";
	
	if(document.getElementById('anchorImpresion' + constiEmpresa + 'CalleNumero').innerHTML)
		document.getElementById('anchorImpresion' + constiEmpresa + 'CalleNumero').innerHTML = " " + document.getElementById('anchorImpresion' + constiEmpresa + 'CalleNumero').innerHTML;
	if(document.getElementById('anchorImpresion' + constiEmpresa + 'CallePiso').innerHTML)
		document.getElementById('anchorImpresion' + constiEmpresa + 'CallePiso').innerHTML = " PISO: " + document.getElementById('anchorImpresion' + constiEmpresa + 'CallePiso').innerHTML;
	if(document.getElementById('anchorImpresion' + constiEmpresa + 'CalleDepto').innerHTML)
		document.getElementById('anchorImpresion' + constiEmpresa + 'CalleDepto').innerHTML = " DEPTO: " + document.getElementById('anchorImpresion' + constiEmpresa + 'CalleDepto').innerHTML;
	if(document.getElementById('anchorImpresion' + constiEmpresa + 'CalleCP').innerHTML)
		document.getElementById('anchorImpresion' + constiEmpresa + 'CalleCP').innerHTML = " (" + document.getElementById('anchorImpresion' + constiEmpresa + 'CalleCP').innerHTML + ")";
	

}

function cargarTitularesSectorialista(){

	if(document.getElementById('txtSecTitularDos').value != ""){
		alert('por comenzar');
		document.getElementById('divSecTitularDos').style.display = 'block';	
		alert('Titular2');
		document.getElementById('divSecTitularDosImp').style.display = 'block';
		alert('Titular2_impresion');
	}
	if(document.getElementById('txtSecTitularTres').value != ""){
		document.getElementById('divSecTitularTres').style.display = 'block';
		alert('Titular3');
		document.getElementById('divSecTitularTresImp').style.display = 'block';
		alert('Titular3_impresion');
	}
}